// import utils from "../../utils/utils"
Page({
  data: {
    notifyList: []
  },
  async onLoad() {
    // wx.utils.toast()
    this.getNotifyList()
    console.log(getApp().token);
  },
  async getNotifyList() {
    const { code, data } = await wx.http.get('/announcement')
    if (code !== 10000) return wx.utils.toast()
    //接口调用成功
    this.setData({
      notifyList: data
    })
  }
})
